package com.itxh.core.handler.statement;

import com.itxh.core.config.BoundSql;
import com.itxh.core.config.MappedStatement;

import java.sql.Connection;
import java.sql.Statement;
import java.util.List;

public interface StatementHandler {

    Statement prepare(Connection connection,String sql) throws Exception;

    void parameterize(Statement statement, Object param, BoundSql boundSql) throws Exception;

    <T> List<T> query(Statement statement, BoundSql boundSql, MappedStatement mappedStatement) throws Exception;
}
